class Config(object):
    SECRET_KEY = 'my secret safasghaskdbnvasga'
    SQLALCHEMY_TRACK_MODIFICATIONS = False
    CELERY = {
        "broker_url": "redis://127.0.0.1:6379/2",
        "result_backend": "redis://127.0.0.1:6379/2",
        "task_ignore_result": True,
    }


class ProductionConfig(Config):
    SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://root:root@localhost:3306/nestle'


class DevelopmentConfig(Config):
    SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://root:root@localhost:3306/nestle'


class TestingConfig(Config):
    SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://root:root@localhost:3306/nestle'
    TESTING = True


REDIS_DB = {
    'host': '127.0.0.1',
    'port': 6379,
    'db': 1,
    'password': '',
    'max_connections': 100
}
